package admin

import (
	"context"
	"server/internal/service"

	"server/api/admin/system"
)

func (c *ControllerSystem) ConfigCacheContent(ctx context.Context, req *system.ConfigCacheContentReq) (res *system.ConfigCacheContentRes, err error) {
	res = new(system.ConfigCacheContentRes)
	res.Content, err = service.SystemConfig().GetCacheContentByCode(ctx, req.Code)
	return
}
